import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/global.css'
import Layui from '@layui/layui-vue'
import '@layui/layui-vue/lib/index.css'
import { layer } from '@layui/layer-vue'

const app = createApp(App)
app.use(store)
app.use(router)
app.use(Layui)

// 添加全局的layer方法
app.config.globalProperties.$layer = layer

app.mount('#app')
